Problem Note 40383: An unreadable content error occurs when you open Microsoft Excel files that were created by a 64-bit Excel driver
When you open Microsoft Excel files that were created by the XLS engine, you might receive the following message:
Excel found unreadable content in 'yourfile.xls'. Do you want to recover
the contents of this workbook.
If you trust the source of this workbook click Yes.
If you click the Yes button, only part of the data is displayed.
This problem occurs in Excel 2007 on 64-bit platforms and also in Excel 2010, on both 32-bit and 64-bit platforms. If you open the same file in Excel 2003, it opens correctly. The problem occurs because of the heading that is generated in the .xls file that is created by the SAS® System.
To resolve the problem in the third maintenance release for SAS 9.2® (TS2M3), add the statement option VERSION=2003 to your export code, as follows:
proc export data=test outfile="c:\public\myfiles.xls" dbms=xls replace;
sheet="mysheet";
newfile=yes;
version=2003;
run;
This solution works for Excel 2007 version 12.0.4518 or earlier.
If you have a version of Excel 2007 that is later than 12.0.4518, or if you are using Excel 2010, then you must do one of the following:
- Open the Excel file in Excel 2003 and resave the file.
- Use the EXCELCS driver with the SAS® PC Files Server.
- Export the file to a different format, such as a .csv or a tab-delimited .txt file.
If you are running SAS
® 9.3 M1 or later, DBMS=XLSX can be used to export XLSX files because:
- It is a newer driver that does not use the SAS PC Files Server.
- It can export only one sheet per file.
- The entire XLSX file is replaced.
- In SAS 9.3 TS1M1, you are limited to 25 columns or less.
In SAS 9.3 TS1M2, there are no limitations except the one sheet per file
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | Linux | 9.2 TS2M0 | 9.4 TS1M1 |
Linux for x64 | 9.2 TS2M0 | 9.4 TS1M1 |
64-bit Enabled Solaris | 9.2 TS2M0 | 9.4 TS1M1 |
HP-UX IPF | 9.2 TS2M0 | 9.4 TS1M1 |
64-bit Enabled HP-UX | 9.2 TS2M0 | 9.4 TS1M1 |
64-bit Enabled AIX | 9.2 TS2M0 | 9.4 TS1M1 |
Windows Vista for x64 | 9.2 TS2M0 | |
Windows Vista | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 9.2 TS2M0 | |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M0 | 9.4 TS1M1 |
Microsoft Windows Server 2008 R2 | 9.2 TS2M0 | 9.4 TS1M1 |
Microsoft Windows Server 2003 for x64 | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.2 TS2M0 | 9.4 TS1M1 |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
Solaris for x64 | 9.2 TS2M0 | 9.4 TS1M1 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
In the Windows 7 operating environment and other UNIX environments, the 64-bit Excel driver might generate unreadable-content errors when you open Excel files that were created with the XLS engine.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2010-10-15 13:13:06 |
Date Created: | 2010-07-20 10:23:28 |